package edu.eas.admin.service;

import edu.eas.common.api.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 认证服务远程调用
 *
 * @author cql
 */
@FeignClient("eas-auth")
public interface AuthService {

    /**
     * 远程调用获取 token
     *
     * @param parameters
     * @return
     */
    @PostMapping(value = "/oauth/token")
    CommonResult getAccessToken(@RequestParam Map<String, String> parameters);

}
